package org.example.service;

import org.example.model.CouponRecordDO;
import org.example.model.CouponRecordMessage;
import org.example.model.PageResult;
import org.example.request.LockCouponRecordRequest;
import org.example.util.JsonData;
import org.example.vo.CouponRecordVO;
import org.springframework.data.repository.query.Param;

public interface CouponRecordService {

    /**
     * 分页查询个人优惠券记录
     */
    PageResult page(int page, int size);

    /**
     * 查询优惠券详情
     */
    CouponRecordVO findById(Long recordId);

    /**
     * 锁定优惠券记录
     */
    JsonData lockCouponRecords(LockCouponRecordRequest recordRequest);

    boolean releaseCouponRecord(CouponRecordMessage recordMessage);



}